package easyway.trainapp.webframework.web;

import java.io.Serializable;
/**
 * 
 * @author zhangqihang
 * ShuttleList
 */



public class ShuttleListMenu implements Serializable{
	
	private static final long serialVersionUID = -7986511703272291347L;
	private String iconImage;
	private String name;

	
	public ShuttleListMenu() {
		
	}
	public ShuttleListMenu(String iconImage, String name) {
		super();
		this.setIconImage(iconImage);
		this.setName(name);
	}
	public String getIconImage() {
		return iconImage;
	}
	public void setIconImage(String iconImage) {
		this.iconImage = iconImage;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((iconImage == null) ? 0 : iconImage.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ShuttleListMenu other = (ShuttleListMenu) obj;
		if (iconImage == null) {
			if (other.iconImage != null)
				return false;
		} else if (!iconImage.equals(other.iconImage))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
}